import httpRequest from './request'

export function addMember(param) {
    return httpRequest({
        url: "/api/member/add",
        method: "post",
        data: param
    })
}

export function getList(param) {
    return httpRequest({
        url: "/api/member/list",
        method: "get",
        params: param
    })
}

export function delMember(param) {
    return httpRequest({
        url: "/api/member/del",
        method: "post",
        data: param
    })
}

export function getMemberList(param) {
    return httpRequest({
        url: "/api/member/getMemberList",
        method: "get",
        params: param
    })
}

export function getMateList(param) {
    return httpRequest({
        url: "/api/member/getMateList",
        method: "get",
        params: param
    })
}

export function setMate(param) {
    return httpRequest({
        url: "/api/member/setMate",
        method: "post",
        data: param
    })
}

export function update(param) {
    return httpRequest({
        url: "/api/member/update",
        method: "post",
        data: param
    })
}
